﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.OrderPackingRecord;
using BCDto.TMS.OrderPackingRecord;
using BCEntity.TMS.OrderPackingRecord;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.OrderPackingRecord
{
	/// <summary>
	/// 订单包装材料记录
	/// </summary>
	public interface IOrderPackingRecordService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="orderPackingRecordId">订单包装材料记录Id</param>
		bool Exists(long orderPackingRecordId);
		/// <summary>
		/// 添加订单包装材料记录
		/// </summary>
		/// <param name="requestDto">订单包装材料记录信息</param>
		OrderPackingRecordDto Add(OrderPackingRecordRequestDto requestDto);
		/// <summary>
		/// 更新订单包装材料记录
		/// </summary>
		/// <param name="putDto">订单包装材料记录信息</param>
		OrderPackingRecordDto Update(OrderPackingRecordPutDto putDto);
		/// <summary>
		/// 删除订单包装材料记录
		/// </summary>
		/// <param name="orderPackingRecordId">订单包装材料记录Id</param>
		bool Delete(long orderPackingRecordId);
		/// <summary>
		/// 获取订单包装材料记录
		/// </summary>
		/// <param name="orderPackingRecordId">订单包装材料记录Id</param>
		OrderPackingRecordDto Get(long orderPackingRecordId);
		/// <summary>
		/// 获取订单包装材料记录列表
		/// </summary>
		/// <param name="orderNo">订单编号</param>
		IEnumerable<OrderPackingRecordDto> GetList(string orderNo);
		/// <summary>
		/// 获取订单包装材料记录列表
		/// </summary>
		/// <param name="orderId">订单id</param>
		IEnumerable<OrderPackingRecordDto> GetList(long orderId);
		/// <summary>
		/// 获取订单包装材料记录分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">订单包装材料记录每页数据条数</param>
		PageableList<OrderPackingRecordDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}